# Battery percentage using upower
# Also draws an indicator in the form of an upwards or downwards arrow
#------------------------------------------------------------------------------
set -g status-right \
"#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\
#([[ $(upower -i /org/freedesktop/UPower/devices/battery_BAT0|grep state)\
	   == *discharging* ]] && echo ↓ || echo ↑)\
#(upower -i /org/freedesktop/UPower/devices/battery_BAT0|grep per|cut -b26-)\
 %H:%M %d.%m.%y"

# More frequent status line updates
set -g status-interval 1
